xen/arm: Remove flush_xen_text_tlb_local()
authorJulien Grall <julien.grall@arm.com>
Tue, 14 May 2019 12:11:27 +0000 (13:11 +0100)
committerJulien Grall <julien.grall@arm.com>
Tue, 21 May 2019 10:59:29 +0000 (11:59 +0100)
commit7ad0e780857728724e59859dcc422404d4ed0c46
treee8414351e7dd26c9990fae6abf24013ade0e369b
parent505f1f0b19a1be0e2623aa6028db87b57e283f5a
xen/arm: Remove flush_xen_text_tlb_local()

The function flush_xen_text_tlb_local() has been misused and will result
to invalidate the instruction cache more than necessary.

For instance, there is no need to invalidate the instruction cache if
we are setting SCTLR_EL2.WXN.

There is effectively only one caller (i.e free_init_memory() who would
need to invalidate the instruction cache.

So rather than keeping around the function flush_xen_text_tlb_local()
replace it with call to flush_xen_tlb_local() and explicitly flush
the cache when necessary.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/include/asm-arm/arm32/page.h
xen/include/asm-arm/arm64/page.h